﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Syspetro.Deploy.Jwt
{
    public interface ITokenCache
    {
        TimeSpan ExpireTimeSpan { get; set; }
        void Add(Guid userid, Guid id, string token);
        bool Refresh(Guid id, string token);
        string GetByToken(Guid id);
        void RemoveByUser(Guid userid, Guid tokenid);
    }
}
